package com.opgea.crm.repository;

import java.util.Date;
import java.util.List;

import com.opgea.crm.domain.entities.Activity;

public interface ActivityRepo {

	
	
	public void create(Activity activity);
	
	public void update(Activity activity);
	public void remove(long id);
	public Activity find(long id);
	public List<Activity> findAll();
	public List<Activity> findAllByLeadId(long leadId);
	public List<Activity> findAllByActivityType(long leadId, int activityType);
	public List<Activity> findDynamically(String criteria, String value);
	public List<Activity> findReport(String periodFrom, String periodTo,
			 String statusType, String priority, 
			 String activityType );
	public List<Activity> findAllByDuration(Long assignedToId, Date from, Date to);
}
